package com.bsj.travel.monitor.service;

import com.bsj.travel.def.common.DTO.web.otaUpgrade.OtaUpgradeDTO;
import com.bsj.travel.def.common.DTO.web.otaUpgrade.OtaUpgradeSearchDTO;
import com.bsj.travel.def.common.VO.OtaUpgradeVO;
import com.bsj.travel.def.global.JsonResult;

import java.util.List;

/***
 * @description OtaUpgradeService
 * @author LiJiaXin
 * @version 1.0.0
 * @time 2024/1/26 17:00
 **/
public interface OtaUpgradeService {

    /**
     * 添加OTA升级
     *
     * @param otaUpgradeDTO
     * @return com.bsj.travel.def.global.JsonResult
     * @author ljx
     * @time 2024/1/26 17:38
     */
    JsonResult addOtaUpgrade(OtaUpgradeDTO otaUpgradeDTO);

    /**
     * 删除OTA升级
     *
     * @param id
     * @return com.bsj.travel.def.global.JsonResult
     * @author ljx
     * @time 2024/1/26 17:38
     */
    JsonResult deleteOtaUpgrade(Long id);

    /**
     * 修改OTA升级
     *
     * @param otaUpgradeDTO
     * @return com.bsj.travel.def.global.JsonResult
     * @author ljx
     * @time 2024/1/26 17:38
     */
    JsonResult updateOtaUpgrade(OtaUpgradeDTO otaUpgradeDTO);

    /**
     * 根据id获取OTA升级信息
     *
     * @param id
     * @return com.bsj.travel.def.common.VO.OtaUpgradeVO
     * @author ljx
     * @time 2024/1/26 17:38
     */
    OtaUpgradeVO getOtaUpgradeInfoById(Long id);

    /**
     * OTA升级分页
     *
     * @param otaUpgradeSearchDTO
     * @return com.bsj.travel.def.global.JsonResult<java.util.List<com.bsj.travel.def.common.VO.OtaUpgradeVO>>
     * @author ljx
     * @time 2024/1/26 17:39
     */
    JsonResult<List<OtaUpgradeVO>> pageOtaUpgrade(OtaUpgradeSearchDTO otaUpgradeSearchDTO);
}
